package org.jeecg.modules.mr.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.mr.entity.MsMeasures;
import org.jeecg.modules.mr.entity.MsSubMeasures;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 用水计量
 * @Author: jeecg-boot
 * @Date:   2022-02-10
 * @Version: V1.0
 */
public interface IMsMeasuresService extends IService<MsMeasures> {

	/**
	 * 添加一对多
	 *
	 */
	public Integer saveMain(MsMeasures msMeasures,List<MsSubMeasures> msSubMeasuresList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(MsMeasures msMeasures,List<MsSubMeasures> msSubMeasuresList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	//删除计量明细
    void delSubByMainId(String id);

    /**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

}
